//
//  FJC_AVswipeCardCell.m
//  滴滴快拍
//
//  Created by dllo on 16/5/19.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FJC_AVswipeCardCell.h"
#import "Frame.h"

@interface FJC_AVswipeCardCell ()

@property (nonatomic, strong)UIImageView *headImageView;
@property (nonatomic, strong)UILabel *nameTitleLabel;
@property (nonatomic, strong)UILabel *briefTitleLabel;
@property (nonatomic, strong)UILabel *hotLabel;

@end

@implementation FJC_AVswipeCardCell

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        [self setupSubViews];
    }
    return self;
    
}

- (void)setupSubViews {
    self.headImageView = [UIImageView new];
    self.headImageView.backgroundColor = [UIColor redColor];
    [self addSubview:self.headImageView];
    
    self.nameTitleLabel = [UILabel new];
    self.nameTitleLabel.backgroundColor = [UIColor greenColor];
    [self addSubview:self.nameTitleLabel];
    
    self.briefTitleLabel = [UILabel new];
    self.briefTitleLabel.backgroundColor = [UIColor yellowColor];
    [self addSubview:self.briefTitleLabel];
    
    self.hotLabel = [UILabel new];
    self.hotLabel.backgroundColor = [UIColor greenColor];
    [self addSubview:self.hotLabel];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.headImageView.frame = CGRectMake(8, VIEW_HEIGHT * 5 / 6 + 20, VIEW_WIDTH / 10, VIEW_WIDTH / 10);
    self.nameTitleLabel.frame = CGRectMake(8 + VIEW_WIDTH / 10, VIEW_HEIGHT * 5 / 6 + 20, VIEW_WIDTH / 2, VIEW_WIDTH / 10 - 15);
    self.briefTitleLabel.frame = CGRectMake(8 + VIEW_WIDTH / 10, VIEW_HEIGHT * 5 / 6 + 10 + VIEW_WIDTH / 10, VIEW_WIDTH / 2, 15);
    self.hotLabel.frame = CGRectMake(VIEW_WIDTH * 2 / 3, VIEW_HEIGHT * 5 / 6 + 18, VIEW_WIDTH / 5, 15);
    
}


@end
